package dk.benches.domain;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Rating implements Serializable{
	public static final List<Integer> RATING_VALUES = Collections.unmodifiableList(Arrays.asList(new Integer(1), new Integer(2), new Integer(3), new Integer(4), new Integer(5))); 
	
	private int locationRating, comfortRating, facilitiesRating;
 
	public int getLocationRating() { return locationRating;}
	public void setLocationRating(int locationRating) { this.locationRating = locationRating; }
	
	public int getComfortRating() { return comfortRating; }
	public void setComfortRating(int comfortRating) { this.comfortRating = comfortRating; }
	
	public int getFacilitiesRating() { return facilitiesRating; }
	public void setFacilitiesRating(int facilitiesRating) { this.facilitiesRating = facilitiesRating; }
	
	public int getOverAllRating(){
		return (locationRating + comfortRating + facilitiesRating)/3;
	}
}
